package com.njwb.day18.thd03;
public class JoinThread extends Thread {
    @Override
    public void run() {
        for(int i = 1 ;i<=10;i++) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(this.getName()+":"+i);
        }
    }
}
